import http from '@/common/http.js'

export async function getXiaoliuren() { //小六壬占卜
	return await http({
		url: '/divination/almanac',
		method: 'GET'
	})
}

export async function unlock(data) { //解锁分享每日一问
	return await http({
		url: '/divination/assistance',
		method: 'GET',
		data
	})
}

export async function fortuneTelling(data) { //解锁分享每日一问
	return await http({
		url: '/divination/fortuneTelling',
		method: 'GET',
		data
	})
}

export async function jingsuan(data) { //八字精算
	return await http({
		url: '/divination/jingsuan',
		method: 'GET',
		data
	})
}

export async function aiResolve(data) { //AI问答
	return await http({
		url: '/divination/completions',
		method: 'GET',
		data
	})
}

export async function jingsuanCount() { //探索次数
	return await http({
		url: '/divination/jingsuan/count',
		method: 'GET',
	})
}

export async function recordList() { //探索记录
	return await http({
		url: '/divination/jingsuan/list',
		method: 'GET',
	})
}

export async function recordDetail(id) { //探索记录详情
	return await http({
		url: '/divination/jingsuan/' + id,
		method: 'GET',
	})
}